package com.gzu.emr.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

/**
 * @author chuchu
 * @version 1.0
 * @date 2023-07-20
 **/
@Data
public class Prescription {
    @Schema(description = "主键")
    private BigInteger id;

    @Schema(description = "编辑状态")
    private Integer status;

    @Schema(description = "创建日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "付数")
    private Integer count;

    @Schema(description = "病历号")
    private String medicalRecordId;

    @Schema(description = "总价")
    private BigDecimal amount;

    @Schema(description = "疗法")
    private String therapy;

    @Schema(description = "疗法细节")
    private String therapyDetails;

    @Schema(description = "治疗建议")
    private String medicalAdvice;

    @Schema(description = "使用频率")
    private String frequency;

    @Schema(description = "使用方法")
    private String usageMeans;

    @Schema(description = "处方类型")
    private Integer type;

}
